import api from '@/api/api'

import configRoles from './rolesModules/configRoles'
import interfaceRoles from './rolesModules/interfaceRoles'
import helpRoles from './rolesModules/helpRoles'
import operateRoles from './rolesModules/operateRoles'
import userManageRoles from './rolesModules/userManageRoles'
import dataCenterRoles from './rolesModules/dataCenterRoles'
import channelRoles from './rolesModules/channelRoles'
import contentMangeRoles from './rolesModules/contentMangeRoles'
//问卷调查权限模块
import voteRoles from './rolesModules/voteRoles'
//资源管理权限模块
import resourceManageRoles from "./rolesModules/resourceManageRoles";
//舆情管理权限模块
import sentimentManageRoles from "./rolesModules/sentimentManageRoles";

const roles = [
    {
        name: '工作台',
        role: '/work',
        isHidden: true,
        checked: true,
        api: [
            api.userLogin,
            api.flowSourceList,
            api.flowSearchWordList,
            api.statisticMemberList,
            api.globalStatistic,
            api.flowPvList,
            api.diskServerInfo
        ]
    },
    userManageRoles,
    resourceManageRoles,
    sentimentManageRoles,
    dataCenterRoles,
    voteRoles,
    contentMangeRoles,
    channelRoles,
    operateRoles,
    helpRoles,
    interfaceRoles,
    configRoles
]
export default roles

